<% content_for :head do %>
		<%= stylesheet_link_tag 'blogs' %>
<% end %>

<div class="jumbotron" xmlns="http://www.w3.org/1999/html">
	<div class="container">
		<h1>Search</h1>

		<p>Simple search</p>

		<p><a class="btn btn-primary btn-lg" role="button">come on search me »</a></p>
	</div>
</div>
<div class="">
	<div class="container">
		<%= link_to '发表blog', new_blog_path, class: 'btn btn-primary' %>
		<%= link_to '草稿箱', drafts_blogs_path, class: 'btn btn-primary' %>
	</div>
	<div>

		<!--左侧栏 （affix属性可锁定）-->
		<div class="bs-sidebar hidden-print affix" role="complementary">

			<ul class="nav bs-sidenav">
				<li>
					<p><h4 class="container">相关介绍</h4>  </p>
					<ul class="nav">
						<li><a href="#glyphicons-glyphs">专题介绍（1,2,3...）</a></li>
						<li><a href="#glyphicons-how-to-use">有趣分享</a></li>
						<li><a href="#glyphicons-examples">案例分析</a></li>
					</ul>
				</li>
			</ul>
		</div>

		<!--blog 列表-->
		<div class="container blog-index-show">
			<ul class="list-group ">
				<% @blogs.each do |blog| %>
						<li class="custom-info-item  text-org list-group-item">
							<div class="row container">
								<div class="container">
									<div class="well-lg">
									<h3><%= blog.title %></h3>

									<p><%= get_formatting_time(blog.created_at) %> </p>

									<div class="blog-list"><%= get_blog_show_content(strip_tags(blog.content).html_safe).html_safe %></div>

									<%= link_to 'View details »', blog_url(blog.id), class: 'btn btn-info btn-sm' %>
								</div>
								</div>
							</div>
						</li>
				<% end %>
			</ul>
		</div>

		<!--右侧栏-->

	</div>
	<div id="paginator" class="container">
		<%= paginate @blogs %>
	</div>
</div>
